#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
void chengfa(int n)
{
	int a = 0;
	int b = 0;

	for (a = 1; a <= n; a++)
	{
		for (b = 1; b <= a; b++)
			printf("%d * %d = %d   ", a, b, a * b);
		printf("\n");
	}
}
int main()
{
	int n = 0;
	scanf("%d", &n);

	chengfa(n);

	return 0;
}